package com.ltxtiyu.video.dao.ltx;

import com.ltxtiyu.video.entity.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface MessageDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKeyWithBLOBs(Message record);

    Integer selectUnReadCount(Integer userId);

    List<Message> selectUnreadCountByParams(Map<Object, Object> map);

    Message selectUnreadFirstByParams(Map<Object, Object> map);

    List<Message> selectListByParams(Map<Object, Object> map);

    int readMessageByParams(Map<String, Object> map);
}